package com.mask.im.business.model.entity;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("用户-角色关联实体")
@TableName("sys_user_role")
public class UserRole {

	@TableId(value = "id",type = IdType.AUTO)
	@ApiModelProperty("用户权限关联实体id")
	private Integer id;

	@ApiModelProperty("角色id")
	private Integer roleId;

	@ApiModelProperty("用户信息id")
	private Long userInfoId;

	@ApiModelProperty("创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	@ApiModelProperty("更新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updateTime;
}
